//
//  SEPrescriptionTemplateListCell.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/6/9.
//

import UIKit

class SEPrescriptionTemplateListCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func update(with viewModel: SEPrescriptionViewModel) {
        nameLabel.text = viewModel.prescription.name
        contentLabel.text = viewModel.prescription.diagName
    }
    
    @IBOutlet private weak var nameLabel: UILabel!
    @IBOutlet private weak var contentLabel: UILabel!
    
}
